package com.ly.gen.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TableContext {

    @Autowired
    private MysqlTableService mysqlTableService;

    public TableService getService(String dbType) {
        if (dbType.equals("mysql")) {
            return mysqlTableService;
        }
        return null;
    }
}
